package com.legendshop.oa.model;
import java.util.Date;

import com.legendshop.dao.persistence.Column;
import com.legendshop.dao.persistence.Entity;
import com.legendshop.dao.persistence.GeneratedValue;
import com.legendshop.dao.persistence.GenerationType;
import com.legendshop.dao.persistence.Id;
import com.legendshop.dao.persistence.Table;
import com.legendshop.dao.persistence.TableGenerator;
import com.legendshop.dao.support.GenericEntity;

/**
 *任务时间估计
 */
@Entity
@Table(name = "ls_taskestimate")
public class TaskEstimate implements GenericEntity<Long> {

	private static final long serialVersionUID = 4157295768166930324L;

	/** 主键 */
	private Long id; 
		
	/** 任务Id */
	private Long taskId; 
	
	/** 项目Id */
	private Long projectId; 
		
	/** 发生的日期 */
	private Date date; 
		
	/** 剩余时间 */
	private Double leftHours; 
		
	/** 已经消耗的时间 */
	private Double consumed; 
		
	/** 用户名 */
	private String userName; 
		
	/** 日志 */
	private String work; 
	
	/** 是否有审核过 **/
	private int reviewed;
		
	
	public TaskEstimate() {
    }
		
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "generator")
	@TableGenerator(name = "generator", pkColumnValue = "TASKESTIMATE_SEQ")
	public Long  getId(){
		return id;
	} 
		
	public void setId(Long id){
			this.id = id;
		}
		
    @Column(name = "task_id")
	public Long  getTaskId(){
		return taskId;
	} 
		
	public void setTaskId(Long taskId){
			this.taskId = taskId;
		}
		
    @Column(name = "date")
	public Date  getDate(){
		return date;
	} 
		
	public void setDate(Date date){
			this.date = date;
		}
		
    @Column(name = "left_hours")
	public Double  getLeftHours(){
		return leftHours;
	} 
		
	public void setLeftHours(Double leftHours){
			this.leftHours = leftHours;
		}
		
    @Column(name = "consumed")
	public Double  getConsumed(){
		return consumed;
	} 
		
	public void setConsumed(Double consumed){
			this.consumed = consumed;
		}
		
    @Column(name = "user_name")
	public String  getUserName(){
		return userName;
	} 
		
	public void setUserName(String userName){
			this.userName = userName;
		}
		
    @Column(name = "work")
	public String  getWork(){
		return work;
	} 
		
	public void setWork(String work){
			this.work = work;
		}

    @Column(name = "project_id")
	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

    @Column(name = "reviewed")
	public int getReviewed() {
		return reviewed;
	}

	public void setReviewed(int reviewed) {
		this.reviewed = reviewed;
	}
	


} 
